-
Notifications
You must be signed in to change notification settings - Fork 41
Python 3 compatibility #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
i believe the failing test is due to incompatibility with Django 1.11, right? |
i don't believe |
…jango would be required
i didn't want to figure out how to match the latest relevant Django version to each Python version, so i dropped 3.2 and 3.3 to get CI passing. For reference, here are the currently supported Django versions and the Python versions they support: Django 1.11: 2.7, 3.4, 3.5, 3.6 |
setup.py
Outdated
@@ -25,6 +25,8 @@ | |||
'Framework :: Django', | |||
'Operating System :: OS Independent', | |||
'Programming Language :: Python :: 2.7', | |||
'Programming Language :: Python :: 3.4', | |||
'Programming Language :: Python :: 3.5', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe also add these?
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython',
Sounds fine dropping Python 3.2 and 3.3, they're both EOL. Here's the pip installs for djangorestframework-httpsignature from PyPI for the last month:
|
Ah, we should add 3.6 now... |
@hugovk look ok now? |
Tests pass for Python 3.2-3.5, so let's get it marked as 3-compatible.
For the record
httpsig
doesn't indicate that it supports 3.5, but the tests here pass.Note that i am interpreting string literals as unicode for Python 2, which is technically a change in behavior. i don't foresee a problem with that, and this makes behavior consistent between 2 and 3.
Also, i made the regex match non-greedy because depending on the order of the header values, it was at times matching too much. For example: